package org.jradweb.core.taglib;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;

import org.springframework.web.context.WebApplicationContext;
/**
 * 
 *
 * Created On Apr 21, 2008
 * @author <a href="mailto:wagzhi@gmail.com">Paul Wang</a>
 * @version $Id: BaseTag.java 149 2008-10-10 03:10:10Z wagzhi $
 */
public class BaseTag extends BodyTagSupport {
	protected WebApplicationContext appCtx;
	@Override
	public int doStartTag() throws JspException {
		this.appCtx=(WebApplicationContext)this.pageContext.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
		return super.doStartTag();
	}
}
